/*
 * Created on Mar 17, 2010
 */
package ro.letsdoitromania;

import javax.microedition.lcdui.Command;
import com.mgmaps.app.APPCommands;
import com.mgmaps.utils.LS;

public class Commands extends APPCommands {
  
  public static Commands cinstance;
  
  public final Command addCommand;
  public final Command editCommand;
  public final Command deleteCommand;
  public final Command continueCommand;
  
  public final Command sendCommand;
  public final Command mapTypeCommand;
  public final Command saveCommand;
  
  public final Command photo1Command;
  public final Command photo2Command;
  public final Command photo1CommandItem;
  public final Command photo2CommandItem;
  
  private Commands() {
    hasMapBackCommand = true;
    hasMapExitCommand = false;
    
    addCommand = new Command(LS.get("app.command.add"), Command.SCREEN, 21);
    editCommand = new Command(LS.get("app.command.edit"), Command.SCREEN, 22);
    deleteCommand = new Command(LS.get("app.command.delete"), Command.SCREEN, 23);
    continueCommand = new Command(LS.get("app.command.continue"), Command.SCREEN, 24);
    
    sendCommand = new Command(LS.get("app.command.send"), Command.SCREEN, 60);
    mapTypeCommand = new Command(LS.get("app.command.maptypes"), Command.SCREEN, 12);
    saveCommand = new Command(LS.get("app.command.save"), Command.SCREEN, 61);

    photo1CommandItem = new Command(LS.get("app.command.photo1"), Command.ITEM, 46);
    photo2CommandItem = new Command(LS.get("app.command.photo2"), Command.ITEM, 47);
    photo1Command = new Command(LS.get("app.command.photo1"), Command.SCREEN, 48);
    photo2Command = new Command(LS.get("app.command.photo2"), Command.SCREEN, 49);
  }
  
  public static void initialize() {
    // allow re-initialization when changing language
    cinstance = new Commands();
    instance = cinstance;
  }

}
